import fetch from 'common/src/utils/fetch';
/**
 * 自动开关设置添加功能
 * @param {*} data
 */
export function addScoreEnterAffirmBachelor (data) {
    return fetch({
        url: '/api/scoremanagementservice/scoreEnterAffirm/addScoreEnterAffirmBachelor',
        method: 'POST',
        data
    });
}

/**
 * 自动同步排考数据到成绩
 * @param {*} data
 */
export function synchExam (data) {
    return fetch({
        url: '/api/scoremanagementservice/scoreEnterAffirm/synchExam?calendarId=' + data,
        method: 'PUT'
    });
}

/**
 * 自动开关设置列表查看功能
 * @param {*} data
 */
export function queryScoreEnterAffirmBachelorPage (data) {
    return fetch({
        url: '/api/scoremanagementservice/scoreEnterAffirm/queryScoreEnterAffirmBachelorPage',
        method: 'POST',
        data
    });
}

/**
 * 自动开关设置删除
 * @param {*} data
 */
export function batchDelScoreEnterAffirmBachelor (data) {
    return fetch({
        url: '/api/scoremanagementservice/scoreEnterAffirm/batchDelScoreEnterAffirmBachelor',
        method: 'DELETE',
        data
    });
}

/**
 * 自动开关设置编辑
 * @param {*} data
 */
export function updateScoreEnterAffirmBachelor (data) {
    return fetch({
        url: '/api/scoremanagementservice/scoreEnterAffirm/updateScoreEnterAffirmBachelor',
        method: 'POST',
        data
    });
}


